import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('@/views/home.vue'),
    meta: {
      til: "首页"
    }
  },
  {
    path: '/detail',
    component: () => import('@/views/detail.vue')
  }
]
let router = createRouter({
  history: createWebHistory(),
  routes: routes
})

export default router